package main

import (
	"github.com/BurntSushi/toml"
)

type config struct {
	Srv server `toml:"server"`
}

type server struct {
	Port int    `toml:"port"`
	DB   string `toml:"db"`
}

var cnf config

func init() {
	_, err := toml.DecodeFile("config.toml", &cnf)
	if err != nil {
		panic(err)
	}
}
